package com.dhz.common.base;

/**
 * @author FY
 */
public enum SysCode implements Code {

    ERR_SERVER(-1, "服务器繁忙，请稍后再试"),
    OK(0, "请求成功"),
    ERR_PARAM(50101, "参数错误"),
    ;


    private final int value;
    private final String info;
    SysCode(final int value, final String info) {
        this.value = value;
        this.info = info;
    }

    @Override
    public int getValue() {
        return value;
    }

    @Override
    public String getInfo() {
        return info;
    }
}
